Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


EnableAndCheckCommand

Mac OS

The EnableAndCheckCommand method enables or disables, and checks or unchecks, the specified menu item.

void EnableAndCheckCommand (in ODCommandID cmdNumber, 
                            in ODBoolean enable,
                            in ODBoolean check);
cmdNumber
The command ID of the menu item to be enabled or disabled, or checked or unchecked. On the Mac OS platform, the command ID is defined as a signed 32-bit value.
enable
kODTrue if the menu item is to be enabled, or kODFalse if the menu item is to be disabled.
check
kODTrue if the menu item is to be checked, or kODFalse if the menu item is to be unchecked.
SEE ALSO
The ODCommandID type (page 895).
"Enabling Menus and Commands" on page 244 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help